#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QtGui/QMainWindow>
#include <QtCore/QDateTime>
#include <QFeedbackEffect>

QTM_USE_NAMESPACE

namespace Ui {
    class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT
public:
    enum ScreenOrientation {
        ScreenOrientationLockPortrait,
        ScreenOrientationLockLandscape,
        ScreenOrientationAuto
    };

    explicit MainWindow(QWidget *parent = 0);
    virtual ~MainWindow();

    // Note that this will only have an effect on Symbian and Fremantle.
    void setOrientation(ScreenOrientation orientation);

    void showExpanded();

private slots:
    void onTimer();
    void on_pushButton_clicked();
    void on_horizontalSlider_valueChanged(int value);
    void on_horizontalSlider_sliderReleased();

private:
    Ui::MainWindow *ui;
    QTimer *timer;
    void setLabelTextToSecs(int secs);
    QString alarmSoundFile;
    QDateTime targetDateTime;
    int oldRemainingSeconds;
    QFeedbackHapticsEffect *effect;
};

#endif // MAINWINDOW_H
